package com.sl.hx.shop.utils;

import android.text.TextUtils;

import static com.sl.hx.shop.constant.AppConfig.ID;
import static com.sl.hx.shop.constant.AppConfig.PHONE;
import static com.sl.hx.shop.constant.AppConfig.TOKEN;

/**
 * TODO
 * Created by BoQin on 2018/8/23.
 * Modified by wyq
 *
 * @Version
 */
public class ConfigUtil {

    /**
     * 是否登录
     */
    public static boolean isLogin(){

        return !TextUtils.isEmpty(SPUtils.getInstance().getString(PHONE));
    }

    public static String getPhone(){

        return SPUtils.getInstance().getString(PHONE);
    }

    public static String getToken(){
        return SPUtils.getInstance().getString(TOKEN);
    }

}
